package com.phoenix.mapper;

import com.phoenix.entity.UserMember;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserMemberMapper {
    List<UserMember> selectNSearch(Map<String, Object> search);

    Boolean addUserMember(UserMember userMember);

    Boolean deleteUserMember(Integer infoID);

    Boolean updateUserMember(UserMember userMember);

    Boolean deleteUserMemberByList(List<String> idList);

    UserMember selectMemberById(String infoID);

    List<Integer> selectMemberIDByUserId(Integer userID);

    String selectUserNameByInfoID(Integer infoID);

    List<UserMember> adminSelectNSearch(Map<String, Object> search);
}
